/*
 * Created by: Peter Weissbrod
 * Created: Saturday, November 03, 2007
 */
using System;
using EntityLayer.Entities;

namespace Controllers
{
    /// <summary>
    /// these are gestures that the view can send to the controller
    /// </summary>
    public interface ISalesItemManagementView : IView
    {
        event EventHandler<SalesItemEventArgs> CreateSalesItemEvent;
        event EventHandler<SalesItemEventArgs> UpdateSalesItemEvent;
    }
    /// <summary>
    /// this is the information encapsulated within the gestures
    /// </summary>
    public class SalesItemEventArgs : EventArgs
    {
        private readonly SalesItem salesItem = null;
        public SalesItemEventArgs(SalesItem salesItem)
        {
            this.salesItem = salesItem;
        }
        public SalesItem SalesItem
        {
            get { return salesItem; }
        }
    }
}